package myJs.api

import myJs.Implicits._
import myJs.myPkg.MyFetch
import upickle.default.read

import scala.concurrent.ExecutionContext.Implicits.global

/**
 * Created by yz on 25/5/2022
 */
object AnnoApi {

  val baseUrl = s"${Api.apiUrl}/nut/anno"

  def allGeneNames = {
    val url = s"${baseUrl}/allGeneNames"
    MyFetch.getRnStr(url = s"${url}").map { str =>
      read[List[String]](str)
    }
  }



}
